﻿namespace EyFramework.Library
{
    /// <summary>
    ///
    /// </summary>
    public class GridToolBarSetting
    {
        private int _id;

        private string _caption;

        private int _imageIndex = -1;

        private string _name;

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public string Caption
        {
            get { return _caption; }
            set { _caption = value; }
        }

        public int ImageIndex
        {
            get { return _imageIndex; }
            set { _imageIndex = value; }
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public GridToolBarSetting(int id, string caption)
        {
            _id = id;
            _caption = caption;
            _name = "bar" + id;
        }

        public GridToolBarSetting(int id, string caption, int imageIndex)
        {
            _id = id;
            _caption = caption;
            _name = "bar" + id;
            _imageIndex = imageIndex;
        }
    }
}